home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / screen.postinst < prev    next >
Encoding:
Text File  |  2007-03-08  |  970 b   |  38 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # gotta source this b/c the package uses debconf and we don't want lintian to
  5. # whine about it...
  6. . /usr/share/debconf/confmodule
  7.  
  8. case "$1" in
  9.   configure) ;;
  10.   abort-upgrade|abort-deconfigure|abort-remove) exit 0 ;;
  11.   *)
  12.     echo "ERROR: screen postinst called with unknown argument \"$1\"."
  13.     echo "Aborting configuration of screen package."
  14.     exit 1 ;;
  15. esac
  16.  
  17. # /var/run/screens was used in previous releases and is now depricated
  18. if [ -d /var/run/screens ] ; then
  19.     rm -rf /var/run/screens
  20. fi
  21.  
  22. # add screen to /etc/shells
  23. /usr/sbin/add-shell /usr/bin/screen || true
  24.  
  25. update-rc.d -f screen-cleanup remove || true
  26.  
  27. # Automatically added by dh_installinfo
  28. if [ "$1" = "configure" ]; then
  29.     install-info --quiet /usr/share/info/screen.info
  30. fi
  31. # End automatically added section
  32. # Automatically added by dh_installinit
  33. if [ -x "/etc/init.d/screen" ]; then
  34.     update-rc.d screen start 70 S . >/dev/null || exit $?
  35. fi
  36. # End automatically added section
  37.  
  38.